package com.hgcode.wtboot.config;

import com.alibaba.fastjson.JSON;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;
/**
 * 功    能：springboot 启动后执行的类
 * 作    者：唐文韬
 * 时    间：2022/11/10 21:53
 */
@Component
@Slf4j
@Order(0)
public class AfterStartRunner implements ApplicationRunner {

    @Override
    public void run(ApplicationArguments args) {
        log.info("springboot 启动成功后执行的方法:{}", JSON.toJSONString(args));
    }
}
